package com.wgy.day26.HashMap集合;

import java.util.HashMap;

/**
 * Created by pc on 2020/12/7 21:39
 * Description: LearningJava
 */
public class Demo02HashMap {
    public static void main(String[] args) {
        HashMap<Integer,String> ha=new HashMap<>();
        ha.put(5,"五");
        ha.put(9,"九");
        ha.put(3,"三");
        ha.put(1,"一");
        ha.put(8,"八");
        ha.put(0,"零");
        ha.put(2,"二");
        ha.put(4,"四");
        ha.put(7,"七");
        ha.put(6,"六");
        System.out.println(ha);//{0=零, 1=一, 2=二, 3=三, 4=四, 5=五, 6=六, 7=七, 8=八, 9=九}


    }

}
